package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户微信绑定对象 sys_user_wechat
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
public class SysUserWechat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 微信绑定ID */
    private Long wechatId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 微信OpenID */
    @Excel(name = "微信OpenID")
    private String openId;

    /** 微信UnionID */
    @Excel(name = "微信UnionID")
    private String unionId;

    /** 当前选中的组织ID */
    @Excel(name = "当前选中的组织ID")
    private Long selectedOrg;

    /** 绑定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "绑定时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bindTime;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    public void setWechatId(Long wechatId) 
    {
        this.wechatId = wechatId;
    }

    public Long getWechatId() 
    {
        return wechatId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setUnionId(String unionId) 
    {
        this.unionId = unionId;
    }

    public String getUnionId() 
    {
        return unionId;
    }

    public void setSelectedOrg(Long selectedOrg) 
    {
        this.selectedOrg = selectedOrg;
    }

    public Long getSelectedOrg() 
    {
        return selectedOrg;
    }

    public void setBindTime(Date bindTime) 
    {
        this.bindTime = bindTime;
    }

    public Date getBindTime() 
    {
        return bindTime;
    }

    public void setLastLoginTime(Date lastLoginTime) 
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() 
    {
        return lastLoginTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("wechatId", getWechatId())
            .append("userId", getUserId())
            .append("openId", getOpenId())
            .append("unionId", getUnionId())
            .append("selectedOrg", getSelectedOrg())
            .append("bindTime", getBindTime())
            .append("lastLoginTime", getLastLoginTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("password", getPassword())
            .toString();
    }
}
